package Java.j2;

import java.util.Scanner;

public class AcWing_662 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double X = sc.nextDouble();
        double Y = sc.nextDouble();

        if(X > 0 && Y > 0) {
            System.out.println("Q1");
        }else if(X < 0 && Y > 0) {
            System.out.println("Q2");
        }else if(X < 0 && Y < 0) {
            System.out.println("Q3");
        }else if(X > 0 && Y < 0) {
            System.out.println("Q4");
        }else if(X == 0 && Y == 0) {
            System.out.println("Origem");
        }else if(X == 0) {
            System.out.println("Eixo Y");
        }else if(Y == 0) {
            System.out.println("Eixo X");
        }
    }
}
